﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace SelfService.Model.Models
{
    public class SysSmsPushLog : TopBasePoco
    {
        [Display(Name = "手机号码")]
        [MaxLength(255)]
        public string Phone { get; set; }

        [Display(Name = "推送内容")]
        [MaxLength(1024)]
        public string Context { get; set; }

        [Display(Name = "推送结果")]
        public PushStateEnum State { get; set; }

        [Display(Name = "错误消息")]
        public string Message { get; set; }

        [Display(Name = "创建人")]
        public FrameworkUser CreateBy { get; set; }

        [Display(Name = "创建人")]
        public Guid? CreateById { get; set; }

        [Display(Name = "推送时间")]
        public DateTime? PushTime { get; set; }

        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }
    }

    public enum PushStateEnum
    {
        创建 = 0,
        成功 = 10,
        失败 = 20
    }
}